from django.http import HttpResponse
from django.views import View

class MainView(View):
    def get(self, request):
        return HttpResponse("Hello, world!")

if __name__ == "__main__":
    from django.core.management import execute_from_command_line
    execute_from_command_line(["manage.py", "runserver", "8000"])
